﻿using System;

namespace SilverlightRestServices.Description
{
    public class RestInvokeAttribute : Attribute
    {
        public String Url { get; set; }

        public String BodyParameter { get; set; }

        public RestFormat BodyFormat { get; set; }

        public String Method { get; set; }

        public String ContentType { get; set; }

        public RestFormat ResponseFormat { get; set; }

        public RestInvokeAttribute(String url, String bodyParameter)
        {
            this.Method = "POST";
            this.Url = url;
            this.BodyParameter = bodyParameter;
        }
    }
}
